
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>运输名单</title>
    <%-- 静态包含 base标签、css样式、jQuery文件 --%>
    <%@ include file="/page/common/header.jsp" %>

</head>
<body>
    <div id="container">
        <div id="table">

            <table class="right">
                <tr>
                    <th>车辆ID</th>
                    <th>车辆名称</th>
                    <th>车辆描述</th>
                    <th colspan="2">操作</th>
                </tr>
                <c:forEach items="${requestScope.cars}" var="cars">
                    <tr>
                        <td>${cars.id}</td>
                        <td>${cars.name}</td>
                        <td>${cars.description}</td>
                        <td><a href="client/carServlet?action=getCar&id=${cars.id}">修改 </a>
                            <a class="deleteClass" href="client/carServlet?action=delete&id=${cars.id}"> 删除</a></td>
                    </tr>
                </c:forEach>

                <tr>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td><a href="page/edit/car_edit.jsp">添加运输工具</a></td>
                </tr>

            </table>
        </div>

    </div>
    <%--静态包含页脚内容--%>
    <%@include file="/page/common/footer.jsp" %>
</body>
</html>
